<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>客户导入日志管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/customer.impt/customerImportLog/">客户导入日志列表</a></li>
		<shiro:hasPermission name="sys:customer.impt:customerImportLog:edit"><li><a href="${ctx}/sys/customer/impt/customerImportLog/form">客户导入日志添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="customerImportLog" action="${ctx}/sys/customer/impt/customerImportLog/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>批次号：</label>
				<form:input path="batchNo" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>文件名：</label>
				<form:input path="filename" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>md5码：</label>
				<form:input path="md5" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>批次号</th>
				<th>导入文件名</th>
				<th>导入文件大小</th>
				<th>导入文件md5码</th>
				<th>总记录数</th>
				<th>导入成功记录数</th>
				<th>导入失败记录数</th>
				<th>导入时间</th>
				<th>导入操作说明</th>
				<shiro:hasPermission name="sys:customer:impt:customerImportLog:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="customerImportLog">
			<tr>
				<td><a href="${ctx}/sys/customer/impt/customerImportLog/form?id=${customerImportLog.id}">
					${customerImportLog.batchNo}
				</a></td>
				<td>
					${customerImportLog.filename}
				</td>
				<td>
					${customerImportLog.filesize}
				</td>
				<td>
					${customerImportLog.md5}
				</td>
				<td>
					${customerImportLog.expectCount}
				</td>
				<td>
					${customerImportLog.validCount}
				</td>
				<td>
					${customerImportLog.expectCount-customerImportLog.validCount}
				</td>
				<td>
					<fmt:formatDate type="date" value="${customerImportLog.createDate}"/>
				</td>
				<td>
					${customerImportLog.remarks}
				</td>
				<shiro:hasPermission name="sys:customer:impt:customerImportLog:edit"><td>
    				<a href="${ctx}/sys/customer/impt/customerImportLog/form?id=${customerImportLog.id}">修改</a>
					<a href="${ctx}/sys/customer/impt/customerImportLog/delete?id=${customerImportLog.id}" onclick="return confirmx('确认要删除该客户导入日志吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>